package com.example.sharding.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.sharding.domain.User;
import com.example.sharding.service.UserService;
import com.example.sharding.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author admin
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-09-26 10:44:02
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{


    @Override
    public int inset(User user) {
        return baseMapper.insert(user);
    }

    @Override
    public List<User> getAll() {
        return baseMapper.selectList(null);
    }

    @Override
    public User getUser(String Date) {
        return this.baseMapper.getUser(Date);
    }

}




